<?php $view->extend('layout_admin.php') ?>
<section class="content-header">
    <h1>
        Vaccin
        <small>Nouveau</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Vaccin</a></li>
        <li class="active">Nouveau</li>
    </ol>
</section>

<div class="row">
    <div class="col-12">
    <h1>Nouveau Camp</h1>
    <form name="vaccin" action="<?php echo $view['router']->generate('admin_vaccin_new') ?>" method="POST">
        Camp:<br>
        <select name="camps_id">
        <?php
            foreach ($camps as $camp) {
        ?>
            <option value="<?php echo $camp->getId() ?>"><?php echo $camp->getVille() ?></option>
        <?php
            }
        ?>
        </select>
        <br>
        Maladie:<br>
        <select name="maladie_id">
        <?php
            foreach ($maladies as $maladie) {
        ?>
            <option value="<?php echo $maladie->getId() ?>"><?php echo $maladie->getNom() ?></option>
        <?php
            }
        ?>
        </select>
        <br>
        Quantite:<br>
        <input type="text" name="quantite">
        <br>
        <input type="submit" value="Ajouter">
    </form>
    </div>
</div>